package com.train.mapper;

import com.train.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    User selectPasswordByName(@Param("userName") String userName, @Param("password") String password);
    User selectUserByid(@Param("id")Integer id);
    List<User> selectAllUser();
    int addUser(User user);
    int updateUser(User user);
    int deleteUser(@Param("id")Integer id);
}
